package com.qdxwx.data.service.user;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.course.CourseFile;
import com.qdxwx.models.document.Document;
import com.qdxwx.models.picture.Picture;
import com.qdxwx.models.user.User;
import com.qdxwx.models.user.UserDownload;

import java.util.List;

/**
 *
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface UserDownloadService {

    List<UserDownload> getList(UserDownload query, PageRequest pageRequest);

    UserDownload get(long id);

    int count(UserDownload query);

    int insert(UserDownload log);

    int create(Picture picture, User user);

    int create(Document document, User user);

    int create(CourseFile courseFile, User user);

    int delete(long id);

    int updateCombine(long userId1, long userId2);
}
